package com.fnzx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fnzx.dao.RotationChartDao;
import com.fnzx.entity.RotationChartEntity;
import com.fnzx.service.RotationChartService;
import com.fnzx.util.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fnzx.util.PageUtils;



@Service("rotationChartService")
public class RotationChartServiceImpl extends ServiceImpl<RotationChartDao, RotationChartEntity> implements RotationChartService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RotationChartEntity> page = this.page(
                new Query<RotationChartEntity>().getPage(params),
                new QueryWrapper<RotationChartEntity>().orderByDesc("sort_value")
        );

        return new PageUtils(page);
    }

}